package com.qtummatrix.service.impl;

import com.qtummatrix.dao.CustomerDao;
import com.qtummatrix.entity.CustomerInfoVO;
import com.qtummatrix.entity.CustomerinfoEntity;
import com.qtummatrix.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * create by Gongshiyong  2019-12-07 11:31
 */
@Service
public class CustomerServiceImpl implements CustomerService {

	@Autowired
	private CustomerDao customerDao;
	
	@Override
	public void delList(int id) {
		customerDao.delCustomer(id);
	}

	@Override
	public void addList(String name, String gender, String tel, String UID, String address, String customerWork,
			String customerType, String discredit, String litigation, int monthlyIncome, int bankId, int goodsId,String customerState) {
		customerDao.addCustomer(name, gender, tel, UID, address, customerWork, customerType, discredit, litigation, monthlyIncome, bankId, goodsId,customerState);
		
	}
	
	@Override
	public List<CustomerInfoVO> findList(int id, String name, String customerType, String UID, int first, int rows) {
		List<CustomerInfoVO> list=customerDao.findCustomer(id, name, customerType, UID,first,rows);
		return list;
	}

	@Override
	public List<CustomerinfoEntity> findCustomer() {
		List<CustomerinfoEntity> list=customerDao.findCustomer();
		return list;
	}


}
